#ifndef _BFTM_H
#define _BFTM_H

#define BFTM_COMPARE_VALUE          (0xFFFFFFFF)

#define MeasureStart()              {HT_BFTM0->SR = 0; HT_BFTM0->CNTR = 0;}
#define MeasureGet(cnt)             (cnt = HT_BFTM0->CNTR)
#define MeasureStop()               {BFTM_EnaCmd(HT_BFTM0,DISABLE)}

void bftm_init(void);

#endif
